package com.sqx.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

@Configuration
public class ImageConfig implements WebMvcConfigurer {

    @Override
    public void addResourceHandlers(ResourceHandlerRegistry registry) {
        registry.addResourceHandler("/file/uploadPath/**").addResourceLocations("file:D:/www/wwwroot/127.0.0.1/sqx_fast/file/uploadPath/");
//        registry.addResourceHandler("/profile/**").addResourceLocations("file:D:/uploadPath/");
    }
}
